package cn.edu.whu.irlab.service.impl;

import cn.edu.whu.irlab.dao.UserAnswerCollectionMapper;
import cn.edu.whu.irlab.model.UserAnswerCollection;
import cn.edu.whu.irlab.model.UserAnswerCollectionKey;
import cn.edu.whu.irlab.service.UserAnswerCollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Roger on 2016/8/5.
 */
@Service
public class UserAnswerCollectionServiceImpl implements UserAnswerCollectionService {

    @Autowired
    private UserAnswerCollectionMapper uacMapper;

    @Override
    public int deleteByPrimaryKey(UserAnswerCollectionKey key) {
        return uacMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(UserAnswerCollection record) {
        return uacMapper.insert(record);
    }

    @Override
    public int insertSelective(UserAnswerCollection record) {
        return uacMapper.insertSelective(record);
    }

    @Override
    public UserAnswerCollection selectByPrimaryKey(UserAnswerCollectionKey key) {
        return uacMapper.selectByPrimaryKey(key);
    }

    @Override
    public int updateByPrimaryKeySelective(UserAnswerCollection record) {
        return uacMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserAnswerCollection record) {
        return uacMapper.updateByPrimaryKey(record);
    }
}
